import request from '@/router/axios'

export function fetchRegisterList(query) {
  return request({
    url: '/eims/registerconfig/page',
    method: 'get',
    params: query
  })
}export function getRegisterConfigList(query) {
  return request({
    url: '/eims/registerconfig/list',
    method: 'get',
    params: query
  })
}

export function addRegisterObj(obj) {
  return request({
    url: '/eims/registerconfig',
    method: 'post',
    data: obj
  })
}

export function getRegisterObj(id) {
  return request({
    url: '/eims/registerconfig/' + id,
    method: 'get'
  })
}

export function delRegisterObj(id) {
  return request({
    url: '/eims/registerconfig/' + id,
    method: 'delete'
  })
}

export function putRegisterObj(obj) {
  return request({
    url: '/eims/registerconfig',
    method: 'put',
    data: obj
  })
}
